package mjc.tds;

public class Info_Variable extends Info {

	protected Type type;
	protected int deplacement;
	
	public Info_Variable(String nom, Type type, int deplacement){
		super(nom);
		this.type = type;
		this.deplacement=deplacement;
	}
	
	public Type getType(){
		return type;
	}
	
	public int getDeplacement(){
		return deplacement;
	}
	
	public String toString() {
		return "; Var " + nom + ", type=" + type + ", dep=" + deplacement;
	}

	public String toSimpleString() {
		return type + " " + nom+"("+deplacement+")";
	}
}
